#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :config.py
# @Time      :2025/2/14 16:44
# @Author    :kk

SECRET_KEY = "124sfsafadfsadfsadf7897987f98a"

# 数据库配置
HOSTNAME = "10.15.82.74"
PORT = 3306
USERNAME = "root"
PASSWORD = "123456"
DATABASE = "flask_demo"
DB_URI = "mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8mb4".format(
    USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE
)
SQLALCHEMY_DATABASE_URI = DB_URI

# redis 配置
REDIS_URL = "redis://:123456@10.15.82.74:6379/0"

# mongodb 配置
MONGODB_SETTINGS = {
    "db": "flask_demo",
    "host": "10.15.82.74",
    "port": 27017
}

# 邮箱配置(用自己的阿里邮箱)
MAIL_SERVER = "smtp.aliyun.com"
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = "kk2025@aliyun.com"
MAIL_PASSWORD = "123456"
MAIL_DEFAULT_SENDER = "kk2025@aliyun.com"